<?php
/**
 * Substract 1 day
 */
function substractTime($aData) {
    $timeout = 3600 * 24; //1 day
    $dateExpire = date('Y-m-d H:i:s', (time() - $timeout));
    return $dateExpire;
}